<template>
  <div style="padding: 10px">
    <el-table :data="tableData" border style="width: 100%" stripe>
      <el-table-column fixed prop="name" label="课程名"/>
      <el-table-column fixed prop="number" label="课程编号"/>
      <el-table-column prop="time" label="上课时间"/>
      <el-table-column prop="place" label="上课地点"/>
      <el-table-column prop="stuNumber" label="选课人数"/>
    </el-table>
  </div>
</template>

<script>
import request from "@/utils/request";

export default {
  name: "CourseTeach",
  components:{

  },
  data(){
    return{
      tableData:[],
    }
  },
  created() {
    this.load()
  },
  methods: {
    load(){
      request.get("http://124.70.179.188:8082/selCourse/teaCourseList?worknum="+localStorage.getItem("userid")).then(res => {
        this.tableData = res.data
      })
    },
  }
}
</script>

<style scoped>

</style>